# demo02_var.py
x = y = 10  # 链式赋值
print(x, y)
x, y, z = 20, 30, 40  # 多重(元)赋值
print(x, y, z)
x, y = "ab"
print(x, y)  # a b
x, y = ["hello", "world"]
print(x, y)  # hello world
# 交换两个变量的值
x, y = 10, 20
print("变换前:", x, y)
x, y = y, x  # 交换
print("变换后:", x, y)
